package com.swpu.zdl.service.impl;

import com.swpu.zdl.mapper.KeChengMapper;
import com.swpu.zdl.pojo.KeCheng;
import com.swpu.zdl.service.KeChengService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KeChengServiceImpl implements KeChengService {
    @Autowired
    private KeChengMapper keChengMapper;
    @Override
    public List<KeCheng> getAll() {
        return keChengMapper.getAll();
    }

    @Override
    public Boolean addKeCheng(KeCheng keCheng) {
        return keChengMapper.addKeCheng(keCheng);
    }

    @Override
    public boolean deleteKeCheng(Integer kno) {
        return keChengMapper.deleteKeCheng(kno);
    }

    @Override
    public boolean updateKeCheng(Integer kno, KeCheng keCheng) {
        return keChengMapper.updateKeCheng(kno, keCheng);
    }

    @Override
    public KeCheng getCoureseTeacher(String kno) {
        return keChengMapper.getCoureseTeacher(kno);
    }
}
